package com.basics.channel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basics.framework.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 频道消息
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cy_channel_msg")
@ApiModel(value="CyChannelMsg对象", description="频道消息")
public class CyChannelMsg extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "组织ID")
    private Long organizationId;

    @ApiModelProperty(value = "频道ID")
    private Long channelId;

    @ApiModelProperty(value = "发送人ID")
    private Long sendUserId;

    @ApiModelProperty(value = "接收用户ID")
    private Long receiveUserId;

    @ApiModelProperty(value = "消息发送类型(1,评论,2回复,3点赞)")
    private Integer sendType;

    @ApiModelProperty(value = "消息接收类型(1,帖子,2评论,3回复)")
    private Integer receiveType;

    @ApiModelProperty(value = "消息来源ID")
    private String sendItemId;

    @ApiModelProperty(value = "消息接收ID")
    private String receiveItemId;

    @ApiModelProperty(value = "是否已读")
    private Integer readFlag;
    @ApiModelProperty("消息内容")
    private String msgContent;
    @ApiModelProperty("来源")
    private String sourceContent;

    @ApiModelProperty(value = "项目类型(TOPIC话题类型)")
    private String itemType;

    @ApiModelProperty(value = "项目ID(根据itemType判断 目前对应帖子ID)")
    private String itemId;
}
